/*
 * Copyright (c) 2022, tyustli
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-02-08     tyustli      first implementation
 */

#include <stdio.h>
#include <math.h>

int main(int argc, char **argv)
{

    int num = 458;
    int index = 0;

    while (num != 0)
    {
        index++;
        num = num / 10;
    }

    printf("%d\r\n", index);

    return 0;
}

/******************** end of file **********************/
